<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNbTokenTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('nb_token', function (Blueprint $table) {
            $table->increments('id');
            $table->string('appId');
            $table->string('secret');
            $table->string('accessToken')->nullable();
            $table->string('atExpiresIn')->nullable();
            $table->string('refreshToken')->nullable();
            $table->string('rtExpiresIn')->nullable();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('nb_token');
    }
}
